app.service('z-lactation-s', [
		'$rootScope',
		'$z-http',
		'ZModel',
		function($rootScope, $http, ZModel) {
			var service = {
					getLactationList : function(data,success,fault) {
						$http.post("lactation/getLactationList.do",data)
						.success(function(data) {
							success(data.success);
		  				}).error(function(data) {
	  						fault(data);
		  				});
					},
					saveLactation : function(data,success,fault) {
						$http.post("lactation/saveLactation.do",data)
						.success(function(data) {
							success(data.success);
		  				}).error(function(data) {
	  						fault(data);
		  				});
					},
					updateLactation : function(data,success,fault) {
						$http.post("lactation/updateLactation.do",data)
						.success(function(data) {
							success(data.success);
		  				}).error(function(data) {
	  						fault(data);
		  				});
					},
					deleteLactation : function(data,success,fault) {
						$http.post("lactation/deleteLactation.do",
							$.param(data),
							{headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}}
							).success(function(data) {
								success(data.success);
			  				}).error(function(data) {
			  					if(fault) {
			  						fault(data);
			  				}
		  				});
					}
			};
			return service;
		} ]);